


#include <Timer.h>
#include "CausalChat.h"
#include <Serial.h>

configuration CausalChatAppC {
}
implementation {
  components new TimerMilliC() as UART_Timer0;
  components LedsC;
  components PlatformSerialC;
  components MainC;
  components CausalChatC as App;
  components rco;

  App.Boot -> MainC;
  App.Rco -> rco;
  App.Leds -> LedsC;
  App.UART_Timer0 -> UART_Timer0;
  App.StdControl -> PlatformSerialC;
  App.UartByte -> PlatformSerialC;
  App.UartStream -> PlatformSerialC;

  /* rco */

  components ActiveMessageC;
  components new AMSenderC(RCO_COMM);
  components new AMReceiverC(RCO_COMM);

  rco.Packet -> AMSenderC;
  rco.AMPacket -> AMSenderC;
  rco.AMControl -> ActiveMessageC;
  rco.AMSend -> AMSenderC;
  rco.Receive -> AMReceiverC;

}
